package com.pengtu.gsj.service.impl.dl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.dl.FacilityInfoDao;
import com.pengtu.gsj.entity.dl.FacilityInfo;
import com.pengtu.gsj.service.dl.FacilityinfoService;

/**
 * 
 * 
 * FacilityinfoServiceImpl
 * 
 * 2017年4月19日 下午4:29:46
 * 
 * @version 1.0.0
 * 
 */
@Transactional
@Service
public class FacilityinfoServiceImpl implements FacilityinfoService {

	@Autowired
	private FacilityInfoDao facilityinfoDao;

	@Override
	public List<FacilityInfo> getFacilityinfos(QueryFilter queryFilter) {
		return facilityinfoDao.find(queryFilter);
	}

	@Override
	public Page<FacilityInfo> findFacilityinfos(Page<FacilityInfo> page,
			QueryFilter queryFilter) {
		return facilityinfoDao.findPage(page, queryFilter);
	}

	@Override
	public FacilityInfo getFacilityinfo(String id) {
		return facilityinfoDao.get(id);
	}

	@Override
	public void saveFacilityinfo(FacilityInfo facilityinfo) {
		facilityinfoDao.save(facilityinfo);
	}

	@Override
	public void deleteFacilityinfo(String id) {
		facilityinfoDao.delete(id);

	}

}
